package log;

import org.apache.log4j.Logger;

public class Log4jTest {

//	public static final Logger logger = Logger.getRootLogger();
	public static final Logger logger = Logger.getLogger(Log4jTest.class);
	
	public static void main(String[] args) {
		
		for(int i = 0; i < 99999; i++){
			
			logger.fatal("致命错误", new ArrayIndexOutOfBoundsException("数组越界异常"));
			logger.error("严重错误", new NullPointerException("空指针异常"));
			logger.warn("警告提示", new NoSuchMethodException("没有你要访问的方法"));
			logger.trace("asdf");
			logger.info("提示信息");
		}
	}
}
